php check of object is empty

57

php check of object is empty -

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}

Comments

Submit
0 Comments